package zyg.yws.ywsthree;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import java.util.ArrayList;

public class zongjie extends AppCompatActivity {
    private TextView daan1;
    private TextView daan2;
    private TextView daan3;
    private TextView daan4;
    private TextView daan5;
    private TextView daan6;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.zongjie);
        initView();
    }
    private void initView(){
        daan1=(TextView)findViewById(R.id.one);
        daan2=(TextView)findViewById(R.id.two);
        daan3=(TextView)findViewById(R.id.three);
        daan4=findViewById(R.id.four);
        daan5=findViewById(R.id.five);daan6=findViewById(R.id.name);


        Intent it=getIntent();
        Bundle bundle=it.getExtras();
        String sugg0=bundle.getString("sugg0");
        String one=bundle.getString("daan1","");
        String two=bundle.getString("daan2","");
        String three=bundle.getString("daan3","");
        ArrayList<String> mainConsume=bundle.getStringArrayList("mainConsume");
        String sugg=bundle.getString("sugg");
        String mian="";

        daan6.setText("你的名字是：\n"+sugg0);
        daan1.setText("1.以前是否自学过安卓开发：\n"+one);
        daan2.setText("2.课程进度的感觉：\n"+two);
        daan3.setText("3.是否希望多增加课堂翻转环节：\n"+three);
        for(int i=0;i<mainConsume.size();i++){
            mian+="\t\t"+mainConsume.get(i)+"\n";
        }
        daan4.setText("4.对课程中最感兴趣的部分：\n"+mainConsume);
        daan5.setText("5.对讲课方式的建议：\n"+sugg);

    }
}